package com.example.safeassistan.home.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.example.safeassistan.R;
import com.example.safeassistan.base.BaseActivity;

public class DeviceRepairPlan  extends BaseActivity implements View.OnClickListener {

    private TextView tvSubmit;
    public static void actionStart(Context context) {
        Intent intent = new Intent(context, DeviceRepairPlan.class);
        context.startActivity(intent);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.tvSubmit:
                DevicerepairProgress.actionStart(getContext(),2);
                break;
        }
    }

    @Override
    protected void init(Bundle savedInstanceState) {
        setAndroidNativeLightStatusBar(true);
    }

    @Override
    protected int setLayoutResourceID() {
        return R.layout.device_repair_plan;
    }

    @Override
    protected void initView() {
        setTitleText("维修计划");
        tvSubmit=findViewById(R.id.tvSubmit);
        tvSubmit.setOnClickListener(this::onClick);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getTitleBarType() {
        return 0;
    }
}
